#ifndef OWire_H
#define OWire_H

#define DQ PE2
#define SET_DQ 	DDRE &= ~_BV(DQ)
#define CLR_DQ 	DDRE |= _BV(DQ)
#define IN_DQ 	PINE & _BV(DQ)

void owire_delay(unsigned int __count);
void owire_reset(void);
void owire_write_bit(char bit);
char owire_read_bit(void);
unsigned char owire_read_byte(void);
void owire_write_byte(char wire_wartosc);

#endif /* OWire_H */
